home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rjs.lha / RJS / NDR / src / makefile next >
Encoding:
Makefile  |  1991-06-14  |  452 b   |  39 lines

  1. #
  2. #
  3. # Makefile 
  4. #
  5.  
  6. CC=CC
  7. YFLAGS = -d
  8. .SUFFIXES: .o .c .y .l .s .C
  9.  
  10. #
  11. # C++ rules
  12. #
  13. .C.o:
  14.     $(CC) $(CFLAGS) -c $*.C
  15.  
  16. .C.a:
  17.     $(CC) -c $(CFLAGS) $<
  18.     ar rv $@ $*.o
  19.     rm -f $*.o
  20.  
  21. RJSROOT=../..
  22. RJSDIR=$(RJSROOT)/RJS
  23. RLIB  = $(RJSDIR)/$(MACHINE)/libRJS.a
  24. CFLAGS = -I$(RJSROOT)
  25.  
  26. .PRECIOUS: $(RLIB)
  27.  
  28. $(RLIB) :    $(RLIB)(NDR_receive.o)    \
  29.         $(RLIB)(NDR_send.o)     \
  30.         $(RJSDIR)/NDR.h
  31.     ranlib $(RLIB)
  32.  
  33.  
  34. $(RJSDIR)/NDR.h: NDR.h
  35.     cp NDR.h $(RJSDIR)
  36.  
  37. clean:
  38.     rm -f *.o core
  39.